//
//  BottomTextButton.m
//  Budejie
//
//  Created by 远成物流 on 2017/6/6.
//  Copyright © 2017年 陈梦佳. All rights reserved.
//

#import "BottomTextButton.h"
#import <SDAutoLayout/SDAutoLayout.h>

@implementation BottomTextButton

-(void)layoutSubviews{
    [super layoutSubviews];
    
    //设置图片位置
    self.imageView.top_sd = 0;
    self.imageView.centerX_sd = self.width_sd * 0.5;
//    self.imageView.height_sd = self.height_sd-self.titleLabel.height_sd;
//    self.imageView.width_sd = self.width_sd * self.imageView.height_sd / self.height_sd;
    
    //设置titleLabel位置
    self.titleLabel.top_sd = self.height_sd - self.titleLabel.height_sd;
    [self.titleLabel sizeToFit];
    self.titleLabel.centerX_sd = self.width_sd * 0.5;
}

@end
